﻿using System;
using System.Globalization;
using System.Windows.Data;
using System.Windows.Media;

namespace Marc.JwOrgClient.Views {
    public partial class PodcastDownloadView {
        public PodcastDownloadView() {
            InitializeComponent();
        }

    }

    public class DownloadStateToForegroundConverter : IValueConverter {
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture) {
            return value is bool && (bool) value
                       ? new SolidColorBrush(Colors.Black)
                       : new SolidColorBrush(Colors.DarkGray);
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) {
            throw new NotSupportedException();
        }
    }
}